package com.ocgs.service;

import com.ocgs.base.core.exception.BaseServiceException;
import com.ocgs.model.Product;
import com.ocgs.pagination.PaginatedListImpl;
import org.displaytag.pagination.PaginatedList;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: bryant
 * Date: 10/21/12
 * Time: 10:48 PM
 * To change this template use File | Settings | File Templates.
 */
public interface ProductService {

    int deleteByPrimaryKey(Integer id) throws BaseServiceException;

    int insert(Product record) throws BaseServiceException;

    int insertSelective(Product record) throws BaseServiceException;

    Product selectByPrimaryKey(Integer id) throws BaseServiceException;

    int updateByPrimaryKeySelective(Product record) throws BaseServiceException;

    int updateByPrimaryKeyWithBLOBs(Product record) throws BaseServiceException;

    int updateByPrimaryKey(Product record) throws BaseServiceException;

    List<Product> findAllProduct() throws BaseServiceException;

    PaginatedList findAllProductForPagination(PaginatedListImpl paginatedList,Product product) throws BaseServiceException;

    List<Product> getAllProduct() throws BaseServiceException;

    PaginatedList findAllStorageForPagination(PaginatedListImpl paginatedList,Product product) throws BaseServiceException;
}
